package com.cvte.shop.mapper;

import com.cvte.shop.entity.UniversalResultFields;
import com.cvte.csb.jdbc.mybatis.mapper.CommonMapper;
import com.cvte.shop.entity.dto.FieldDTO;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper接口
 *
 * @author inv
 * @since 2020-08-04
 */
public interface UniversalResultFieldsMapper extends CommonMapper<UniversalResultFields> {


    /**
     * 启用查询字段
     * @param fieldDTO
     */
    void updateFieldUsed(@Param("fieldDTO") FieldDTO fieldDTO);

    /**
     * 验证sql是否能够执行
     * @param sqlContext    生成的sql
     */
    void checkSql(@Param("sqlContext")String sqlContext);
}